package com.example.metodo_post;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.TextView;

public class ver_clientes extends Activity {
	@Override
    protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          
          setContentView(R.layout.resultados);
          String server_url = getIntent().getStringExtra("server_url");
          
          web_page url = new web_page();
  		  List<String> spinnerArray = new ArrayList<String>();
  		  spinnerArray = url.metodo_retorno(server_url);
  		  
  		  Spinner spinner = (Spinner) findViewById(R.id.planets_spinner);
  		  //Spinner spinner = new Spinner(this);

  		  ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_dropdown_item, spinnerArray);
  		  spinner.setAdapter(spinnerArrayAdapter);
  		  TextView text = (TextView) findViewById(R.id.textView1);
  		  text.setText(server_url);
  		  
    }

}
